const { defineConfig } = require('@vue/cli-service')
const NodePolyfillPlugin = require('node-polyfill-webpack-plugin')

module.exports = defineConfig({
  transpileDependencies: true,
  lintOnSave:false,
  devServer: {
    port:1111,
      client: {
        overlay: false,
      },
  },
  //解决gm-srypt webpack < 5 used to include polyfills for node.js core modules by default.
  configureWebpack: (config) => {
    const plugins = []
    plugins.push(new NodePolyfillPlugin())
  }
})




